package com.vogue.supplymall.order.domain.service;

import com.vogue.supplymall.order.domain.model.OrderStatus;

import java.util.Optional;

/**
 * The interface Order status service.
 *
 * @aouthor: zhangliang
 * @date: Create in 2018-02-06
 */
public interface OrderStatusService extends BaseService<OrderStatus, Long> {

    /**
     * Gets order status by order id.
     *
     * @param orderId the order id
     * @return the order status by order id
     */
    Optional<OrderStatus> getByOrderId(Long orderId);
    
    /**
  	 *  自动更新自动取消的订单的标志
  	 */
    public void updateCancelState();
}
